package org.pms.demo.webservice.utils;

/**
 * Created by laijianpeng on 17/10/20.
 */
public class ExceptionUtil {
    public static String getExceptionCode(String msg){
        if(!StringUtils.isNullOrEmpty(msg)){
            if(msg.startsWith("org.apache.shiro.authz.UnauthorizedException:")){
                return "unauthorized";
            }
        }
        return msg;
    }
}
